package com.example.sherlockzhong.plush_v2.CardBeans;
/**
 * Created by DosonLeung on 2014/7/30.
 */

import android.widget.ImageView;
import android.widget.TextView;

import com.example.sherlockzhong.plush_v2.R;
import com.example.sherlockzhong.plush_v2.View.CardHorizontalScrollView;

public class ConsumptionCardBean {
    private static int cardId = 3;
    private static String cardClass = "Consumption";
    private int consumption_icon;
    private String consumption_title;
    private String consumption_expense;
    private String consumption_address;
    private String consumption_date;
    private String consumption_balance;

    public ConsumptionCardBean() {
        this.consumption_icon = R.drawable.money_bag;
        this.consumption_title = "";
        this.consumption_expense = "";
        this.consumption_address = "";
        this.consumption_date = "";
        this.consumption_balance = "";
    }

    public static int getCardId() {
        return cardId;
    }

    public static String getCardClass() {
        return cardClass;
    }

    public int getConsumptionIcon() {
        return consumption_icon;
    }

    public void setConsumptionIcon(int consumption_icon) {
        this.consumption_icon = consumption_icon;
    }

    public String getConsumptionTitle() {
        return consumption_title;
    }

    public void setConsumptionTitle(String consumption_title) {
        this.consumption_title = consumption_title;
    }

    public String getConsumptionExpense() {
        return consumption_expense;
    }

    public void setConsumptionExpense(String consumption_expense) {
        this.consumption_expense = consumption_expense;
    }

    public String getConsumptionAddress() {
        return consumption_address;
    }

    public void setConsumptionAddress(String consumption_address) {
        this.consumption_address = consumption_address;
    }

    public String getConsumptionDate() {
        return consumption_date;
    }

    public void setConsumptionDate(String consumption_date) {
        this.consumption_date = consumption_date;
    }

    public String getConsumptionBalance() {
        return consumption_balance;
    }

    public void setConsumptionBalance(String consumption_balance) {
        this.consumption_balance = consumption_balance;
    }

    public void insertTo(CardHorizontalScrollView v) {
        ImageView consumption_icon = (ImageView) v.findViewById(R.id.consumption_icon);
        TextView consumption_title = (TextView) v.findViewById(R.id.consumption_title);
        TextView consumption_expense = (TextView) v.findViewById(R.id.consumption_expense);
        TextView consumption_address = (TextView) v.findViewById(R.id.consumption_address);
        TextView consumption_date = (TextView) v.findViewById(R.id.consumption_date);
        TextView consumption_balance = (TextView) v.findViewById(R.id.consumption_balance);

        consumption_icon.setImageResource(this.getConsumptionIcon());
        consumption_title.setText(this.getConsumptionTitle());
        consumption_expense.setText(this.getConsumptionExpense());
        consumption_address.setText(this.getConsumptionAddress());
        consumption_date.setText(this.getConsumptionDate());
        consumption_balance.setText(this.getConsumptionBalance());

    }
}

